package com.huike.common.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 合同
 * </p>
 *
 * @author author
 * @since 2023-08-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_contract")
@ApiModel(value="TbContract对象", description="合同")
public class MPTbContract implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "合同id")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "合同编号")
    private String contractNo;

    @ApiModelProperty(value = "客户姓名")
    private String name;

    @ApiModelProperty(value = "意向学科")
    private String subject;

    @ApiModelProperty(value = "活动id")
    private Long activityId;

    @ApiModelProperty(value = "活动名称")
    private String activityName;

    @ApiModelProperty(value = "课程id")
    private Long courseId;

    @ApiModelProperty(value = "课程名称")
    private String courseName;

    private String channel;

    @ApiModelProperty(value = "状态(待审核1，已通过2，已驳回3 全部完成4)")
    private String status;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    private Long deptId;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "文件名称")
    private String fileName;

    @ApiModelProperty(value = "订单价格")
    private Float contractOrder;

    @ApiModelProperty(value = "折扣类型")
    private String discountType;

    @ApiModelProperty(value = "课程价格")
    private Float coursePrice;

    private String processInstanceId;

    private Long businessId;

    @TableField(exist = false)
    private Map<String,Object> params;

    @TableField(exist = false)
    private String remark;

    @TableField(exist = false)
    private String searchValue;

    @TableField(exist = false)
    private String updateBy;

    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime finishTime;

    @TableField(exist = false)
    private Integer order;
}
